package com.betterjr.modules.risk.loan.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.betterjr.common.web.AjaxObject;
import com.betterjr.modules.risk.loan.ILoanProjectBankService;
import com.betterjr.modules.risk.loan.service.LoanProjectBankService;

@Service(interfaceClass = ILoanProjectBankService.class)
public class LoanProjectBankDubboService implements ILoanProjectBankService {

    @Autowired
    private LoanProjectBankService bankService;

    @Override
    public String webQueryBanks(Long anLoanId, String anType) {
        return AjaxObject.newOk("查询银行信息成功", bankService.queryBanks(anLoanId, anType)).toJson();
    }

}
